<?php

namespace App\Models\Trip\History\Repositories\Interfaces;

use App\Models\Trip\History\TripQueryHistory;
use Illuminate\Support\Collection;

interface TripQueryHistoryRepositoryInterface
{
    public function addByUserId(string $user_id, array $data): TripQueryHistory;

    public function findOneByUserCode(string $user_id, string $from_code, string $to_code): ?TripQueryHistory;

    public function listByUserId(string $user_id, int|array $trip_type, int $limit = 6): Collection;

    public function clearByUserId(string $user_id, int|array $trip_type): bool;
}